package com.data;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * @author sergiu.marin
 * @since 01/12/2014.
 */
@Configuration
@PropertySource("classpath:data-sources.properties")
@ComponentScan("com.data")
public class ApplicationConfiguration {

    @Autowired
    private Environment environment;

    public String getProperty(String key) {
        return environment.getProperty(key);
    }
}
